function svnSetMimeType {
	for f in $(find $3 -iname "$1")
	do
	if [ -a $f ]; then
		updateCMD="svn propset svn:mime-type $2 $f"
		echo $updateCMD
		$updateCMD
	fi
	done
}

function svnSetMimeTypeDir {

	svnSetMimeType "*.text" "text/plain" $1
	svnSetMimeType "*.html" "text/html" $1
	svnSetMimeType "*.css" "text/css" $1
	svnSetMimeType "*.png" "image/png" $1
	svnSetMimeType "*.jpg" "image/jpeg" $1
	svnSetMimeType  "*.js" "text/javascript" $1

}

svnSetMimeTypeDir libs
svnSetMimeTypeDir test
